package com.yunxi.service.localService.impl.sat;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.sat.EvaluateMapper;
import com.yunxi.model.sat.Evaluate;
import com.yunxi.sat.pojo.EvaluateCountVO;
import com.yunxi.sat.pojo.EvaluateVO;
import com.yunxi.service.localService.sat.EvaluateService;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 满意度表 服务实现类
 * </p>
 *
 * @author caoYong
 * @since 2019-09-26
 */
@Service
public class EvaluateServiceImpl extends ServiceImplPlus<EvaluateMapper, Evaluate> implements EvaluateService {

    /**
     * 满意度统计
     * @param evaluateVO
     * @return
     * @throws Exception
     */
    @Override
    public  List<List<EvaluateCountVO>>evaluateCount(EvaluateVO evaluateVO) throws Exception {
        List<EvaluateCountVO> listA = baseMapper.evaluateCountA(evaluateVO);
        List<EvaluateCountVO> listB = baseMapper.evaluateCountB(evaluateVO);
        List<EvaluateCountVO> listC = baseMapper.evaluateCountC(evaluateVO);
        List<EvaluateCountVO> listD = baseMapper.evaluateCountD(evaluateVO);
        List<List<EvaluateCountVO>> list = new ArrayList<>();
        list.add(listA);
        list.add(listB);
        list.add(listC);
        list.add(listD);
        return list;
    }
}
